<?php
global $db;
$db = new mysqli($cfg["host"], $cfg["user"], $cfg["password"], $cfg["database"]);
?>